package com.aop.config;


import com.aop.interceptor.VersionInterceptor;
import org.apache.ibatis.plugin.Interceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: tgy
 * @Date: 2020-08-11 19:19
 */
@Configuration
@MapperScan(basePackages = "com.aop.mapper")
public class MybatisConfig {


    @Bean
    public Interceptor versionInterceptor(){

        return new VersionInterceptor();
    }

}
